#ifndef POINTPARSER_H
#define POINTPARSER_H

#include <QList>
#include <QPointF>

class PointParser
{
public:
    PointParser() = default;

    QList<QPointF> parse(const QString &text) const;
    static QList<QPointF> parseCoordinates(const QString& s) ;

private:
    QList<QPointF> parseCommaSeparated(const QString &text) const;
    QList<QPointF> parseSpaceSeparated(const QString &text) const;

    bool isNumber(const QString &str) const;
};

#endif // POINTPARSER_H
